﻿using System;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
using StackExchange.Redis;
using PubSub.S1;
using PubSub.S2;
using PubSub.S3;
using PubSub.S3.Test;

namespace PubSub
{
    class Program
    {
        static async Task Main(string[] args)
        {
            Console.WriteLine("Hello World!");

            //方案一
            //Level1.Test();

            //方案二
            //Level2.Test();

            //方案三
            // Level3.TestAction();

            //Level3.TestTransient();
            //Level3.TestSingleInstance();
            await Level3.TestPubSubByObject();
            //Level3.TestPublishByType();

            Console.ReadLine();
        }
    }
}